﻿using pdt.bll;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WebForm1 : System.Web.UI.Page
{
    ProductService productService = new ProductService();
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Unnamed1_Click(object sender, EventArgs e)
    {
        int value = int.Parse(TextBox1.Text.Trim());
        var results = productService.btn1(value);

        GridView1.DataSource = results;
        GridView1.DataBind();
    }
}